/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package port4j;

import java.io.*;

/**
 *
 * @author Bryce
 */
public class Configuration {
    private String fileName;
    
    public Configuration (String fileName) throws FileNotFoundException, IOException {
        this.fileName = fileName;
        // read file stream & save details
        
        FileInputStream fstream = new FileInputStream(fileName);
        DataInputStream in = new DataInputStream(fstream);
        BufferedReader br = new BufferedReader(new InputStreamReader(in));
        String strLine;
        //read file line by line
        while ((strLine = br.readLine()) != null) {
            //Format: <sourceIP>:<sourcePort> <destIp>:<destPort>
            String[] configs = strLine.split(" ");
            String[] source = configs[0].split(":");
            String[] dest = configs[1].split(":");
            
        }
    }
}
